// slice 提供模块文件夹    
// 微博模块
import { createSlice } from '@reduxjs/toolkit';

const weiboSlice = createSlice({
    //模块名
    name: 'weibo',
    //初始数据
    initialState: {
        contentList:[] //微博列表
    },
    reducers: {
        //行为
        upContentList(state, { payload }) {
            state.contentList = payload;
        }
    }
})
export const { upContentList } = weiboSlice.actions;
export default weiboSlice.reducer;